package com.yopuo.api.pay.unionpay;

import com.yopuo.api.pay.model.Product;
import org.springframework.ui.ModelMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 银联支付
 * @author zzh
 */
public interface UnionPayServer {

	/**
	 * 方法描述: 电脑支付
	 * @param:
	 * @return:
	 * @author: zzh
	 * @date: 2021/1/21
	 */
	public String pcPay(Product product, ModelMap map);

	/**
	 * 方法描述: 手机H5支付
	 * @param:
	 * @return:
	 * @author: zzh
	 * @date: 2021/1/21
	 */
	public String mobilePay(Product product, ModelMap map);

	/**
	 * 银联支付回调 通知我们支付是否成功
	 * @param request
	 * @param response
	 * @Author zzh
	 */
	public void union_notify(HttpServletRequest request, HttpServletResponse response);

	/**
	 * 获取请求参数中所有的信息
	 * @param request
	 * @return Map<String, String>
	 * @Author zzh
	 */
	public Map<String, String> getAllRequestParam(HttpServletRequest request);
}